import request from '@/utils/request'

// 查询字典数据列表
export function listData(data) {
  return request({
    url: '/system/dict/data/query',
    method: 'post',
    data,
  })
}

// 根据字典编号查询字典数据信息
export function getData(data) {
  return request({
    url: '/system/dict/data/query',
    method: 'post',
    data,
  })
}

export function getDicts(data) {
  return request({
    url: '/system/dict/data/selectDictDataList',
    method: 'post',
    data,

  })
}

// 新增字典数据
export function addData(data) {
  return request({
    url: '/system/dict/data/add',
    method: 'post',
    data,
  })
}
// 删除字典数据
export function delData(dictCodes) {
  return request({
    url: '/system/dict/data/delete',
    method: 'post',
    data: { dictCodes },
  })
}

// 修改字典数据
export function updateData(data) {
  return request({
    url: '/system/dict/data/update',
    method: 'post',
    data,
  })
}
